package com.example.demo.services.system.models;

import com.example.demo.models.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "tasks")
public class TaskHelper extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * auto generator start
     **/
    @Column(name = "number", comment = "发起者账号",nullable = true)
    private String number;
    @Column(name = "clazz", comment = "运行的类",nullable = true)
    private String clazz;
    @Column(name = "param", comment = "参数",nullable = true)
    private String param;

    @Column(name = "now", comment = "当前值",nullable = true)
    private String now;
    @Column(name = "max", comment = "最大值",nullable = true)
    private String max;

    @Column(name = "result", comment = "返回值",nullable = true)
    private String result;

    @Column(name = "status", comment = "运行状态",nullable = true)
    private String status;


    /**
     * auto generator end
     **/
    @Repository
    public static class Model extends BaseModel<TaskHelper, Long> {
        @Override
        protected boolean softDeleting() {
            return true;
        }
    }
}
